//
//  MathUtil.h
//  OpenGL
//
//  Created by xiaoxi on 2020/5/26.
//  Copyright © 2020 xiaoxi. All rights reserved.
//

#ifndef MathUtil_h
#define MathUtil_h
#include <iostream>
#include <math.h>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
using VEC3 = glm::vec3;
using VEC2 = glm::vec2;
using COLOR = glm::vec3;
#define PI 3.14159265358979324

#define GET_OFFSET(data,member)      (size_t)(&(((typeof(data)*)0)->member))
//矩形
typedef struct rect_t
{
    float buttom;
    float left;
    float top;
    float right;
    float z_axis;
}RECT,*RECT_PTR;
#endif /* MathUtil_h */
